package com.tt.mapper;

import com.tt.entity.bo.IdNameBO;
import com.tt.entity.po.EnumDepartmentGeneral;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author TP
 * @since 2022-10-26 10:59:16
 */
@Mapper
public interface EnumDepartmentGeneralMapper extends BaseMapper<EnumDepartmentGeneral> {

    /**
     * 大部门的id，name
     */
    @Select("select id, zh_name as name from enum_department_general")
    ArrayList<IdNameBO> getDepartmentIdName();
}
